<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<style>
    .outer {
        width: 200px;
        height: 150px;
        background-color: skyblue;
        clip-path: polygon(0 0, 80% 0,100% 100%,20% 100%);
    }
    .trans {
        margin-top: 200px;
        margin-left: 50px;
        width: 200px;
        height: 150px;
        background-color: red;
        /*?skew() 函数定义了一个元素在二维平面上的倾斜转换*/
        transform: skew(20deg);
    }
</style>
<body>
<div class="outer"></div>
<div class="trans"></div>

</body>
</html>
